#region

using System;
using System.Collections.Generic;
using System.Threading;
using System.Windows.Forms;
using EditeurSyntaxiqueVocal.Forms;
using EditeurSyntaxiqueVocal.Languages.LanguageZ;

#endregion

namespace EditeurSyntaxiqueVocal
{
    internal static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        private static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Form1());
            if (args.Length != 0)
                try
                {
                    Application.Run(new MainForm(args));
                }
                catch (Exception ex)
                {
                    try
                    {
                        Application.Run(new PageStart1());
                    }
                    catch (Exception exc)
                    {
                        MessageBox.Show(exc.Message);
                    }
                }
            else
                try
                {
                    //Application.Run(new PageStart1());
                    Application.Run(new MainForm());
                }
                catch (Exception exc)
                {
                    MessageBox.Show(exc.Message);
                }
        }
    }
}